package com.example.strategy.strategy.impl;

import com.example.strategy.strategy.MyStrategy;
import org.springframework.stereotype.Component;

/**
 * @Auther: chenxiuqi
 * @Date: 2020/4/27 20:15
 * @Description:
 */
@Component("dog")//如果用反射机制的情况下需要交给spring管理
public class DogStrategy implements MyStrategy {
    @Override
    public String play(String s ) {
        String str = "狗狗玩飞盘，玩的很开心";
        return str;
    }
}
